@echo off

set SRC=.
set DEST=C:\Documents and Settings\All Users\Application Data\Microsoft\MSEnvShared\AddIns

echo "DEST=%DEST%"

echo "Copying Marmoset.AddIn..."
del "%DEST%\Marmoset.AddIn"
copy "%SRC%\Marmoset.AddIn" "%DEST%"

echo "Copying Marmoset.dll..."
del "%DEST%\Marmoset.dll"
copy "%SRC%\bin\Marmoset.dll" "%DEST%"

echo "Creating en-US subdirectory..."
mkdir "%DEST%\en-US"

echo "Copying Marmoset.resources.dll..."
del "%DEST%\en-US\Marmoset.resources.dll"
copy "%SRC%\bin\en-US\Marmoset.resources.dll" "%DEST%\en-US"

echo "Done!"
